Various modifications and additions for flightmode.