Changed loop counter.