Changed the way in which job resources are set