A leaf miner is any one of numerous species of insects in which the larval stage lives in, and eats, the leaf tissue of plants. The vast majority of leaf-mining insects are moths (Lepidoptera), sawflies (Symphyta, the mother clade of wasps), and flies (Diptera). Some beetles also exhibit this behavior. Like woodboring beetles, leaf miners are protected from many predators and plant defenses by feeding within the tissues of the leaves, selectively eating only the layers that have the least amount of cellulose. When attacking Quercus robur (English oak), they also selectively feed on tissues containing lower levels of tannin, a deterrent chemical produced in great abundance by the tree. The pattern of the feeding tunnel and the layer of the leaf being mined is often diagnostic of the insect responsible, sometimes even to species level. The mine often contains frass, or droppings, and the pattern of frass deposition, mine shape, and host plant identity are useful to determine the species and instar of the leaf miner. Some mining insects feed in other parts of a plant, such as the surface of a fruit or the petal of a flower. It has been suggested that some patterns of leaf variegation may be part of a defensive strategy employed by plants to deceive adult leaf miners into thinking that a leaf has already been preyed upon. Leaf-mining species One common leaf-mining species in New Zealand is Scaptomyza flava. The species is particularly problematic for plants in the family Brassiceae, more commonly known as mustard plants. Relationship with humans Leaf miners are regarded as pests by many farmers and gardeners as they can cause damage to agricultural crops and garden plants, and can be difficult to control with insecticide sprays as they are protected inside the plant's leaves. Spraying the infected plants with spinosad, an organic insecticide, can control some leaf miners. Spinosad does not kill on contact and must be ingested by the leaf miner. Two or three applications may be required in a season. However, this will have harmful ecological effects, especially if sprayed when bees or other beneficial arthropods are present. Leaf miner infection of crops can be reduced or prevented by planting trap crops near the plants to be protected. For example, lambsquarter and columbine will distract leaf miners, drawing them to those plants and therefore reducing the incidence of attack on nearby crops. This is a method