Adjusted API so that GuessFile() and GuessType() can be called at will