Add capture network traffic code