Add state and memento.