Changed MimeType to MediaType