 
     func loadRequests() {
         PFGeoPoint.geoPointForCurrentLocationInBackground {
-            (driverlocation, error) -> Void in
+            (dloc, error) -> Void in
 
             if error == nil {
+                self.driverLocation = CLLocationCoordinate2DMake((dloc?.latitude)!, (dloc?.longitude)!)
+
                 self.usernames.removeAll(keepCapacity: true)
                 self.locations.removeAll(keepCapacity: true)
+                self.distances.removeAll(keepCapacity: true)
 
                 let reqQuery = PFQuery(className: "RideRequest")
 
-                reqQuery.whereKey("location", nearGeoPoint: driverlocation!)
+                reqQuery.whereKey("location", nearGeoPoint: dloc!)
+                reqQuery.limit = 10
 
                 reqQuery.findObjectsInBackgroundWithBlock {
                     (objects, error) -> Void in


    override func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
        // #warning Incomplete implementation, return the number of rows
        return usernames.count
    }

    override func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
        let cell = tableView.dequeueReusableCellWithIdentifier("requestCell", forIndexPath: indexPath)

        cell.textLabel!.text = usernames[indexPath.row]

        return cell
    }

    override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {


class DriverViewController: UITableViewController, CLLocationManagerDelegate {

    var usernames   = [String]()
    var locations   = [CLLocationCoordinate2D]()
    var distances   = [CLLocationDistance]()

    var driverLocation = CLLocationCoordinate2D()

    override func viewDidLoad() {
        super.viewDidLoad()

        loadRequests()

        NSTimer.scheduledTimerWithTimeInterval(10, target: self, selector: Selector("loadRequests"), userInfo: nil, repeats: true)
    }

    // MARK: - Table view data source
