Added sending waypoints to the spin function.