Added option for secondary file to loop over in loop script