Undo/Redo basic functionality.