Stressed trees often produce a volatile compound that bark beetles can detect to identify suitable host trees. Also, many tree-boring insects emit pheromones that attract bark beetles and other tree-boring insect species to aggregate in the trees.