Adding options to change the number of concurrently running jobs.
Fixing issue where cancelling a blocked job won't result in it getting killed properly.