Added mimetype support