Alter distance metric