A method for treating morbid obesity in a body of a mammal having a gastrointestinal tract extending through a stomach and a pyloric sphincter and a wall forming the stomach and pyloric sphincter. At least one implant is formed in the wall in the vicinity of the pyloric sphincter to inhibit emptying of the stomach.