Add a sleep to the loop