I believe dreaming is your brain running a defrag program. organizing and making sense of all the information it processed that day.