Add mime type method.