Sleep a second in loops for CPU-friendly.