Added functionality for job arrays.