Move i = 0 here