Finally the distance slider works!