First stab at moving pcap writing into a plugin