Add a way to get a serialized value