Added changes for complete flow of packet capture