Sleep is known to allow animals to re-energize themselves and consolidate memories. Rapid eye movement (REM) sleep is known to play an important role in maintaining a healthy mental and physical life, but the molecular mechanisms behind this state are barely understood. Now, scientists have identified a pair of genes that regulate how much REM and non-REM sleep an animal experiences.