Add serialization, getters, inspect.