For someone addicted to benzodiazepines, a longer-acting benzodiazepine may be used during detox to control withdrawal and taper the drugs down slowly. Medications such as antidepressants or mood stabilizers may be used during medical detox from many addictive substances in order to target specific psychological symptoms, such as depression, anxiety, and panic. NIDA reports that the mild stimulant drug modafinil may help with cocaine withdrawal symptoms. Benzodiazepines are sometimes used to smooth out alcohol withdrawal and to help prevent seizures by calming the overactive nerves and on the level of dependency and care needed, detox from illicit drugs may be done in either an outpatient or inpatient capacity. An assessment of physical and emotional symptoms should be first conducted by a trained professional in order to determine what level of care will produce the best results.