Make delta_x dependend on half_range