Changed a use of up to totalNoOFProcesses