Add statistics undo.