Maybe introduce a helper method for both of these wrapped calls so that the logic of the loop is not obscured