Added packet parsing implementation