One reason for the increase in opiate consumption in the United States during the 19th century was the prescribing and dispensing of legal opiates by physicians and pharmacists to women with "female complaints" (mostly to relieve menstrual pain and hysteria). Because opiates were viewed as more humane than punishment or restraint, they were often used to treat the mentally ill. Between 150,000 and 200,000 opiate addicts lived in the United States in the late 19th century and between two-thirds and three-quarters of these addicts were women.