Added the feature to display the total Distance