Add serialization support.