Added MimeType Detection