Serialized the packets