Managed to include some code in AppDelegate.m