Fix sleep time to seconds