James David Lewis-Williams said this quote

According to Martindale’s view, as we drift into sleep we pass through: – waking, problem-oriented thought, – realistic fantasy, – autistic fantasy, – reverie, – hypnagogic (falling asleep) states, and – dreaming.