Maize landraces recruit egg and larval parasitoids in response to egg deposition by a herbivore.