How outpatient addiction treatment works