Rewriting the main functions to make them more sane/ use standard stuff from pcap