Adapting changes in the rayquery API.