#55: Made the state engine an observable of state change events