Packet serialization ( incomplete )