Implemented seek bars to test the distance function