Control of gastrointestinal motility