I dont see why you would have to modify vec_dist. But yeah, making a modified c_scan using vec_dist is a way to go.