First try at recoding an undo