Add min Distance calculations