Before the advent of selective serotonin reuptake inhibitors (SSRIs), its sometimes intolerable side-effect profile was considered more tolerable. Therefore, it became extensively used as a standard antidepressant and later served as a prototypical drug for the development of the later-released TCAs. Since the 1990s, it has no longer been used as commonly, but is sometimes still prescribed as a second-line treatment for treating major depression . It has also seen limited use in the treatment of migraines, ADHD, and post-concussive syndrome. Imipramine has additional indications for the treatment of panic attacks, chronic pain, and Kleine-Levin syndrome. In pediatric patients, it is relatively frequently used to treat pavor nocturnus and nocturnal enuresis.