                         if err
                             return cb results
 
-                        offset = results.rsm?.last
-                        if offset
+                        nextOffset = results.rsm?.last
+                        if nextOffset
                             # Remote supports RSM, walk:
-                            if seenOffsets.hasOwnProperty(offset)
+                            if seenOffsets.hasOwnProperty(nextOffset)
                                 cb new Error("RSM offset loop detected for #{@request.node}: #{offset} already seen")
                             else
-                                seenOffsets[offset] = true
-                                walk offset
+                                seenOffsets[nextOffset] = true
+                                walk nextOffset
                         else
                             # No RSM support, done:
                             console.log("No RSM last")

        seenOffsets = {}
        walk = (offset) =>
            console.log "walk", offset
            @request.rsm.after ?= offset
            @runRequest (err, results) =>
                console.log "ranRequest", err, results
                if err

                @writeResults t, results, cb

    runRequest: (cb) ->
        @router.runRemotely @request, cb


