Updated input file processing