Changed the timeout on the wait to 0.3 seconds.