Rename sleepTime to delay to avoid confusion.