The objective of this study is to compare optimally given methadone maintenance treatment (MMT) for heroin dependence with a novel, sequential strategy (STEP), where patients are offered buprenorphine as first line treatment, allowed dose adjustments as needed, and switched to methadone if the maximal dose of buprenorphine is insufficient.