Implementing mime type recognition.