Added support for inverted flight