This for loop is the main change for this pull, replaces its previous explicit expression.