Addition of the state event callback fired when an event occurred in a given state.