Removed some debug and added iCloud sync to return to foreground.