Serialization interface.