Methadone is used together with medical supervision and counseling to treat opioid dependence patients. It also prevents withdrawal symptoms in these patients.