Pass distance_table as result