Never use for loops.
```ruby
0.upto(offset.size - 1) { |i|
  ...
}
```