Added the consideration for infinite traveled distance in the planner's steering functions.