Add input file checking.