Pheromones are odors that are deliberately used for communication. A female moth may release a pheromone that can entice a male moth that is several kilometers away. Honeybee queens constantly release pheromones that regulate the activity of the hive. Workers can release such smells to call other bees into an appropriate cavity when a swarm moves in or to "sound" an alarm when the hive is threatened.