And, fantastically, the brain may also analyze certain memories during REM sleep, integrating them and looking for patterns. Critically, however, the brain has limited abilities to multitask and cannot perform these cleaning, organizing, and analytical functions as effectively when we are awake and alert.

