Sleep has two types - rapid eye movement (REM) sleep and non-rapid eye movement (NREM) sleep. REM sleep is associated with dreaming and eye movements while NREM sleep has four stages with different brain wave patterns. Sleep is regulated by circadian rhythms and homeostasis. The brainstem contains sleep centers like the raphe nucleus and locus ceruleus that induce REM and NREM sleep respectively. Common sleep disorders include insomnia, sleep apnea, nightmares, night terrors and somnambulism. Movement disorders during sleep include restless legs syndrome and leg cramps.