add: Support for sharing state.