The arousal system functions by activating various pathways that promote wakefulness. For instance, the reticular activating system (RAS) in the brainstem plays a critical role in maintaining consciousness and alertness. The hypothalamus contains neurons that produce orexin (also known as hypocretin), which is vital for wakefulness and stabilizing sleep-wake transitions.