Adding in the code to restart moveOnTrajectory if a new trajectory has been received