Mime type detection added