Moved code to AppDelegate. Bullshit