Thinking, Perception, and Consciousness