A nearby nucleus, the Edinger-Westphal nucleus lies dorsal to the main oculomotor nucleus. It is responsible for the autonomic functions of the oculomotor nerve, including pupillary constriction and lens accommodation.