Refactored flight mode to MVC.