         let live = query.asLiveQuery()
         live.descending = true
 
+        live.addObserver(self, forKeyPath: "rows", options: [], context: nil)
+
         liveQuery = live
-
-        // Magic line
-        live.waitForRows()
-
-        if let rows = live.rows {
-            for row in rows {
-                print(row)
-            }
-        } else if let error = live.lastError {
-            print("Error")
-            print(error)
-        }
     }
 
     override func viewWillAppear(animated: Bool) {


    override func tableView(tableView: UITableView, commitEditingStyle editingStyle: UITableViewCellEditingStyle, forRowAtIndexPath indexPath: NSIndexPath) {
        if editingStyle == .Delete {
//            objects.removeAtIndex(indexPath.row)
//            tableView.deleteRowsAtIndexPaths([indexPath], withRowAnimation: .Fade)
        } else if editingStyle == .Insert {
            // Create a new instance of the appropriate class, insert it into the array, and add a new row to the table view.
        }

        } catch {
            print("Could not create a new room")
        }
    }

    override func observeValueForKeyPath(keyPath: String?, ofObject object: AnyObject?, change: [NSObject : AnyObject]?, context: UnsafeMutablePointer<Void>) {
        self.tableView.reloadData()
    }

    // MARK: - Segues
