The drug , commonly known as Viagra, is a regulated treatment mainly used to treat impotence in males . Developed initially for hypertension, its unanticipated side effects relating to the widening of blood vessels led to its new application as an powerful solution for sexual dysfunction . It works by enhancing circulation to the male organ , helpi