it also keeps track of your internal environment. This function is that of the autonomic nervous system. For example, it monitors your heart rate, increasing it when your body needs more oxygen (like when you're exercising). It also controls processes like the digestive system, instructing glands when to produce digestive juices.