Modernized AppController.