Removed boilplate code from AppDelegate