More range query stuff.