This is a trial to examine the effects of aftercare for mental health patients in community health center (Leistad). Recruitment occurs among hospitalized patients in psychiatric hospitals (Østmarka). After discharge, patients will be randomly assigned to one of two groups: intervention group (community health center, primary care) or control group (Community mental health centers of District Psychiatric Service, specialist care).