Changed definition of distance to target and simplified some sliders.
Merge conflict solve