Added support for mimeType.