Updating trajectory stuff.