Loop over input files.