Suppressing warnings in MainController.