 
     public func stopRangingAllBeacons() {
         for beaconRegion in self.regions {
-            self.startMonitoringForRegion(beaconRegion)
+            self.stopRangingBeaconsInRegion(beaconRegion as BeaconRegion)
         }
     }
 

    public func startRangingBeaconsInRegion(authorization:CLAuthorizationStatus, beaconRegion:BeaconRegion) {
        self.authorize(authorization) {
            self.regionRangingStatus[beaconRegion.identifier] = true
            self.configuredRegions[beaconRegion.region] = beaconRegion
            self.clLocationManager.startRangingBeaconsInRegion(beaconRegion.region as CLBeaconRegion)
        }
    }


    public func stopRangingBeaconsInRegion(beaconRegion:BeaconRegion) {
        self.regionRangingStatus.removeValueForKey(beaconRegion.identifier)
        self.configuredBeaconRegions.removeValueForKey(beaconRegion.region)
        self.clLocationManager.stopRangingBeaconsInRegion(beaconRegion.region as CLBeaconRegion)
    }
    
    public func resumeRangingAllBeacons() {
