An analysis of the peristaltic reflex