Cheanged AppDelegate.