Removed waitForButtonPress commands.