Primary outcome measures: (1) EMA reports of drug use and psychosocial stress, and (2) real-time assessment of environmental risk exposure as measured via integration of GPS data with the Neighborhood Psychosocial Index. Data for the methadone and buprenorphine groups will be analyzed separately for the primary outcome measures and combined as appropriate.