Add packet parsing