Pass LimitOffsets as a pointer, and correctly modify the query string.