Take care of the number of jobs
Support for wildcard in rules