The thalamus modulates incoming and outgoing information between the cerebral cortex and other parts of the diencephalon. Connections run from the most important thalamic nuclei to the prefrontal, premotor, somatosensory, and primary auditory and visual cortex.