Set initial $i to 1