Added function to analyze pcap files