Added MIME type and API fix