Added a check if the input files didn't include a result.