EMState is now the Memento for the internal state.