[Unrolling] Refactor the start and step offsets to simplify overflow