Toward an evolutionary theory of dreaming.