Add missing iteration number to each output