Light in adult beetles was originally thought to be used for similar warning purposes, but its main purpose is now thought to be mate selection. Fireflies are a classic example of an organism that uses bioluminescence for sexual selection. They have evolved a variety of ways to communicate with mates in courtships: steady glows, flashing, and the use of chemical signals unrelated to photic systems.