Changes to flight code