Updated script to allow for throttling the number of jobs used.