Added sleeping to process manager