Despite these encouraging outcomes, the full potential of providing 24/7 access to recovery support via smartphones may not yet have been realized. For example, while participants rated themselves on protective and risk factors weekly, opportunities to intervene "in the moments of need" were lost if the individuals did not self-initiate use of the application, ratings were subject to recall bias, and "teachable moments" in which participants could have cognitively linked the risk factors to their desire or actual use were unexplored. More frequent monitoring of current circumstances (vs. past generalized week) using methods like Ecological Momentary Assessment (EMA) may be better suited to this context as they can improve one's level of self-monitoring, provide additional opportunities to intervene in the moment of risk, minimize recall bias and provide participants with the opportunity to learn more about the relationship between current circumstances and their use.16,17 The primary goal of the proposed trial is to examine the effect of combining more frequent self-monitoring via EMAs and automated interventions via Ecological Momentary Interventions (EMIs) provided by smartphone, on days of abstinence from drugs and alcohol and HIV risk behaviors over 6 months following treatment discharge.