Improved Distance Measure