Scientists have characterized multiple functions of benzoxazinoids in wheat: The toxic form of the substances makes the plant directly resistant to lepidopteran larvae, whereas a less toxic form regulates indirect defense mechanisms against aphids. The researchers identified the ‘switch’ between these different functions as a methyltransferase enzyme, which is activated by caterpillar feeding. This switch enables wheat plants to adapt their defense response to different herbivores.