Only scan the input file if necessary
Don't pass track number to input filename