Added sliders for distance values and use real values.