Working towards distance metric