Have you verified this method works, e.g. with waypoints?