If the distance is too far, you can loop the function in on itself to try again. I’m just showing the first part of what you could do. You would get rid of the FOR LOOP.