Multiple operations should be wrapped in `model.start_operation`. If they are temporary operations one can use `model.abort_operation` to avoid creating an item on the Undo stack.