Add some undo-related methods