Added parameter to closest_object