The lacrimation reflex is stimulated by irritation of the eye's conjunctiva and cornea, which increases tear volume. Afferent nerves in the ophthalmic and infraorbital nerves carry impulses to the brainstem and spinal cord. Efferent parasympathetic nerves from the pterygopalatine ganglion and sympathetic nerves from the upper thoracic spinal cord then activate the lacrimal and accessory glands to secrete the aqueous layer of tears, while tarsal and goblet cells produce the lipid and mucus layers.