Four peripheral nerves run the length of the body on the dorsal, ventral, and lateral surfaces. Each nerve lies within a cord of connective tissue lying beneath the cuticle and between the muscle cells. The ventral nerve is the largest, and has a double structure forward of the excretory pore. The dorsal nerve is responsible for motor control, while the lateral nerves are sensory, and the ventral combines both functions.