     let TICKS_PER_BUFFER = 4
     var audioController : PdAudioController?
 
-    // MARK: - CloudKit definitions
-    
-    let container: CKContainer = CKContainer.default()
-    let publicDB: CKDatabase = CKContainer.default().publicCloudDatabase
-    let privateDB: CKDatabase = CKContainer.default().privateCloudDatabase
-    var delegate : ModelDelegate?
-    
-    // MARK: - Pd Engine Initialisation
+    // MARK: Pd Engine Initialisation
     
     /// Starts the Pd Audio Engine and preemptively opens a patch.
     func startAudioEngine() {

        NSLog("Pd: %@", message)
    }
    
    func application(_ application: UIApplication, willFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey : Any]? = nil) -> Bool {
        // Register defaults
        UserDefaults.standard.register(defaults: AppDelegate.defaultSettings)
        // Load the saved performances
        if let savedPerformances = self.loadPerformances() {
            self.storedPerformances += savedPerformances
            self.sortStoredPerformances()
            NSLog("AD: Successfully loaded", self.storedPerformances.count, "performances")
        } else {
            NSLog("AD: Failed to load performances")
        }
        self.startAudioEngine() // start Pd
        self.fetchWorldJamsFromCloud() // try to get jams from iCloud.
        return true
    }
    

    }
    
    func applicationWillTerminate(_ application: UIApplication) {
        print("AD: Application will terminate")
        performanceStore.savePerformances()
    }

}
