Fixed sleepDelay bug in ProgramFlowUtil