Add Distance Matrix support