Add functions to pcap-workflow.sh