NOTE: We need a state event API for this.
NOTE: We need a state event API for this.