Extends AppDelegate