Sequential and async options for calc_distances