The medication , commonly known as Viagra, is a regulated treatment largely used to address difficulty achieving an erection in males . Developed initially for hypertension, its surprising side effects relating to blood vessel relaxation led to its new application as an powerful solution for sexual dysfunction . It works by enhancing blood flow to