Compiles on XCode 5, but no longer works in background