Updated to loop over all instance owners that have been processed.
Update templates