Share code with sniffer plugin