Initial version of undo.