In total , 349 patients who met the criteria for DSM-IV alcohol dependence when they entered residential treatment were randomized to treatment as usual ( n = 179 ) or treatment as usual plus a smartphone ( n = 170 ) with the Addiction-Comprehensive Health Enhancement Support System ( A-CHESS ) , an application designed to improve continuing care for alcohol use disorders .