Does the above approach adjust dynamically? For example, if anything about the environment changes, is there a function that notifies you to find a new path? Otherwise, it seems that you would just continue looping through the initial set of points found without adjusting for changes in the environment.