Added error checking for missing required input file