Restore looping
Add sleep call