Added sleeptime and format error