You can also use VSYNC instead of WAIT, they both work however there are slight differences in how VSYNC works. Also the delay is 1 so that most, if not all, button presses, will be detected by the BUTTON command. It will update the home screen regularly too. (60 times per second)