Used mainly at the highest levels of competition, vanishing spray is said to help prevent unnecessary delays by preventing the defensive team from encroaching closer than the mandated 10 yards from the ball during a free kick, and also by preventing the attacking team from illegally moving the ball from the spot where the referee awarded the kick.