Added error handling for not finding input file