Fix initial sleep time, clean up debug logging.