Added input file checking to convert.