Opioids and other addictive drugs can alter the rhythmic activity of genes involved in sleep-wake cycles.