Added sleep time support to TaskProcessor.