Updating the de/serialization code for the pet parties.