Add sleep in tight loop to give CPU pause