Do we really need commit invoke in the loop?