Simplified some things in sniffer script (doesn't work)