Also, `i` should be renamed to `start` or something similar, to make more sense. Provided I understand it correctly.