Flow of participants through the study from initial contact through completion or discharge. 1Reasons for exclusion: outside gestational age (641), did not qualify for methadone maintenance (167), chose detoxification (71), did not show for intake (245), medical reasons (98), other drug use (88), other (123); 2reasons for not excluding after consent: chose detoxification (6), medical/psychological reasons (4), AMA during screening (4), outside gestational age (3), other reasons (10); 311 completers, 4 noncompleters; results not included in this study; 4reasons for noncompletion: discharged for medical condition (1), missed consecutive dosing days (4), and elected to withdraw (1).