The primary outcome measures were retention , at least 3 consecutive weeks of cocaine abstinence , the maximum number of consecutive weeks of abstinence and proportions of cocaine-free urine samples during the entire 24-week and at 6-month follow-up .