Almost done with serializing the packets