Added basic sniffer code