This is mediated by many different processes such as the amount of fluid in the stomach, the mixtures of different foods in the stomach, the nerve supply to the both the muscles and the glands that produce both acid, and enzymes and other substances.