Actually make the leaf waving work right