Update the metrics definition: distance