Explained addUndoType further