         publicDB.add(operation) // perform the operation.
         // TODO: Define a more sensible way of downloading the performances
     }
-
-    /// Add a list of performances into the currently stored performances.
-    func addToStored(performances: [ChirpPerformance]) {
-        //print("Store: Adding performances to stored list")
-        //self.storedPerformances = performances // update the stored performances // old
-        let titles = self.storedPerformances.map{$0.title()}
-        var countPerfsAdded = 0
-        for perf in performances {
-            self.performances[CKRecordID(recordName: perf.title())] = perf
-            if !titles.contains(perf.title()) {
-                self.storedPerformances.append(perf)
-                countPerfsAdded += 1
-            }
-        }
-        //print("Store: ", countPerfsAdded, " perfs added to stored performances.")
-        self.sortStoredPerformances()
-    }
     
     /// Return a performance for a given CKRecordID
     func getPerformance(forID recordID: CKRecordID) -> ChirpPerformance? {

    
}

/// Extension for uploading functionality
extension PerformanceStore {
    

        return output
    }



    /// Add a list of performances into the currently stored performances.
    func addToStored(performances: [ChirpPerformance]) {
        //print("Store: Adding performances to stored list")
        //self.storedPerformances = performances // update the stored performances // old
        let titles = self.storedPerformances.map{$0.title()}
        var countPerfsAdded = 0
        for perf in performances {
            self.performances[CKRecordID(recordName: perf.title())] = perf
            if !titles.contains(perf.title()) {
                self.storedPerformances.append(perf)
                countPerfsAdded += 1
            }
        }
        //print("Store: ", countPerfsAdded, " perfs added to stored performances.")
        self.sortStoredPerformances()
    }

    /// Sorts the stored performances by date
    func sortStoredPerformances() {
        self.storedPerformances.sort(by: {(rec1: ChirpPerformance, rec2: ChirpPerformance) -> Bool in
            rec1.date > rec2.date
        })
    }

    /// Sorts a list of ChirpPerformances by date.
    func sortPerformancesByDate(_ perfs : [ChirpPerformance]) -> [ChirpPerformance] {
        return perfs.sorted(by: {(rec1: ChirpPerformance, rec2: ChirpPerformance) -> Bool in
            rec1.date > rec2.date
        })
    }

}

// MARK: - Fetching Operations

/// Extension for specific queries
extension PerformanceStore {

    /// Refresh list of world jams from CloudKit and then update in world jam table view.
    @objc func fetchWorldJamsFromCloud() {
        print("Store: Attempting to fetch World Jams from Cloud.")
