Implement non-adaptive step for ray-tracing, fix bug with non-adaptive integration in the past