Loop to duplicate input files in Sampler. Replace some couts with Logger.