Add basic input file checking.