The pancreas has two main functions: an exocrine function that helps in digestion and an endocrine function that regulates blood sugar. The pancreas contains endocrine glads which produces enzymes to aid digestion. These enzymes include trypsin and chymotrypsin to digest proteins; amylase for the digestion of carbohydrates; and lipase to break down fats.The endocrine component of the pancreas consists of islet cells that create and release important hormones directly into the bloodstream. Two of the main pancreatic hormones are insulin, which acts to lower blood sugar, and glucagon, which acts to raise blood sugar. Maintaining proper blood sugar levels is crucial to the functioning of key organs including the brain, liver, and kidneys.