Remember to mark the loop counter private