I fully believe that discovering the function of sleep and of dreams will go extremely far to understanding the function of consciousness. Evolutionary psychology ("genetic epistemology") is increasingly becoming the most interesting thing I've ever read about. Particularly the work of Jean Piaget. Everyone knows plenty of animals dream, so I'm looking forward to having the time to read the actual whitepaper here!