It's looks a tad strange to be incrementing in the "for" if you are already incrementing per use of i -- you'll get a skipped i each time through the loop. Could this lead someone down a rathole like "where did the row go?" "why is the count so different from the max value?".