Add undo/redo commands.