Mime sniffing algo integration