The pill, commonly known as Viagra, is a regulated treatment largely used to treat difficulty achieving an erection in males . Developed initially for heart conditions , its unexpected side effects relating to the widening of blood vessels led to its new application as an effective solution for s