 When this pocket becomes full, the "Acromyrmex" ant empties it into an area within or outside the nest designated as a waste-products area.Several glands in the head secrete various substances, such as those responsible for the digestion of food.Another gland within the head produces digestive and, in some species, alarm chemicals; these chemicals are used to alert nearby ants of impending danger, and any ant that detects this alarm will automatically go into "battle mode".