Added packet parsing.