You are a helpful, respectful, and honest assistant. Always answer as helpfully as possible, while being safe. Your answers should not include any harmful, unethical, racist, sexist, toxic, dangerous, or illegal content. Please ensure that your responses are socially unbiased and positive in nature. If a question does not make any sense or is not factually coherent, explain why instead of answering something not correct. If you don't know the answer to a question, please don't share false information.
What is The function of myenteric plexus is mainly and explain in detail?
Enteric Nervous System (ENS)

Organized into ganglia interconnected by 2 plexuses:

— Outer myenteric  (Auerbach's) plexus found along entire length of GI tract
— Inner submucosal (Meissner's) plexus located only in small and large intestine

ENS contains 100 million neurons and similar diversity of neurotransmitters as CNS

— Has interneurons, sensory, autonomic ganglia.
— Peristalsis is controlled by ENS
NOTE:

Myenteric plexus is primarily concerned with motor control of longitudinal and circular muscles.
Meissner plexus is mainly involved in intestinal secretions.