Depending on the species involved, woodworm infestation is generally controlled with insecticides. However, some woodworm conditions, such as those caused by the waney edge borer ("Ernobius mollis"), require no treatment at all because the insect will have been killed in the preparation of the wood. Only active infestations require treatment, so it is important to ascertain whether an infestation is still active before treatment is carried out. It is also advisable to investigate and solve possible dampness issues, as dry wood is not usually affected, and wood that remains damp may be reinfected at a later date.