How Consciousness Functions