Added option to limit number of jobs running at a time