Or, as the webpage of the University of Wisconsin’s extension division explains: “The immature bugs feed face down on the stem, and as excess sap is excreted out the anus, it is mixed with a substance secreted by epidermal glands that enhances surface viscosity and stabilizes the foam to make it last longer.”