Same as earlier, but made offsets parameters, just to play safe.