Add undo stack.