WaypointAdder: added code to support dynamic orientation change