Loop stopped at i = 10