The purpose of this study is to compare the effectiveness of maintaining methadone treatment during short-term incarceration vs. methadone detoxification on continuing treatment post release, relapse, reducing HIV risk behaviors and reincarceration. Persons who inject opiates are at increased risk for HIV through both injection and sexual practices. A substantial proportion of opiate addicted persons are incarcerated and a majority of the nearly 8 million individuals released from a correctional setting each year have a history of addiction. The period immediately after release from incarceration is a particularly high-risk time for HIV and other problems including drug relapse and overdose. Methadone is the most widely used opiate replacement therapy in the United States. Despite its demonstrated benefit in decreasing drug use, criminal activity, and recidivism, some individuals on methadone treatment are reincarcerated each year. More than 75% of those individuals are incarcerated for less than six months. A program that maintains these individuals at a therapeutic dose increases the likelihood that they will successfully return to treatment upon release.