This looks like it can be done without duplicating the looping calls to `ZINCR`, but it's fine for now.