     }
     
     func getHours() {
-        self.yelpBusinessDetails(id: id)
-    }
-    
-
-
+        for ID in id {
+            self.yelpBusinessDetails(ID: ID)
+        }
+        self.myRequest.notify(queue: DispatchQueue.main, execute: {
+            print (self.hours)
+            self.segueToTable()
+        })
+    }
+    
     func displayAlert(_ title:String, message:String) {
         self.alertController = UIAlertController(title:title, message:message, preferredStyle: UIAlertControllerStyle.alert)
         let okAction = UIAlertAction(title: "OK", style: UIAlertActionStyle.default) { (action:UIAlertAction) in

        if addressTxt.text!.isEmpty && self.locationSwitch.isOn == false{
            self.displayAlert("Error", message: "Please provide a location.")
        } else{
                self.yelpSearch()
        }
        locationManager.stopUpdatingLocation()
    }

    
    override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) {
        self.view.endEditing(true)
    }

    func getToken() {
        let url: String = "https://api.yelp.com/oauth2/token"
        let params: [String: Any] =

            }
            
            print (self.resultCount)
            
            self.myRequest.leave()
            self.myRequest.notify(queue: DispatchQueue.main, execute:{
                if self.resultCount < 0 {
