Moving range computations to the backend