Passing distance metric to Accord.