Added support for mime types