The nervous system allows animals to respond to stimuli and survive. Simple animals have nerve nets while more complex animals have bundled axons called nerves. The central nervous system includes the brain and spinal cord while the peripheral nervous system connects them via nerves and ganglia. The brainstem controls arousal and sleep. The cerebellum coordinates movement. The diencephalon contains the thalamus, hypothalamus, and epithalamus which regulate homeostasis. The cerebrum is divided into four lobes and has a highly convoluted cortex that allows for specialized functions in different regions.