Studies have shown that retaining memories can be improved by getting sufficient sleep between the time of activity and a test. Neuroimaging shows that the areas of the brain that are activated during sleep are the same as those involved in learning a new task. Dreaming is perhaps useful in consolidating this new information.