Added memento pattern.