Loops through pivots