Add packet handling to the core