Add primitive undo