Resetting waypoints code added