Added generic mime type support