The nervous system consists of a single or double ventral nerve cord running the length of the body, with ganglia and a series of small nerves in each segment. The brain is relatively large, compared with that of other annelids, and lies in the upper part of the head. An endocrine gland is attached to the ventral posterior surface of the brain, and appears to be involved in reproductive activity. In addition to the sensory organs on the head, photosensitive eye spots, statocysts, and numerous additional sensory nerve endings, most likely in involved with the sense of touch, also occur on the body.