How does waving work?