Add initial packet parsing code