added functionality to reduce the number of concurrent jobs.