Added a 1 second sleep, no need to spin so quickly