added loop counter to job appliance process