Added entry point and input file name validation.