Fixed for zero-length lists
Accepts list of input files