Add node serialization/deserialization