Added MIME based content type detection