Undo/redo support for the model.