Adds persistent undo