Rewrote undo