Cleaning and rearranging to aid automating packet capture
Automate initialization packet capture and code generation