     func startRangingForBeacons() {
         operationContext = kRangingOperationContext
 
-        createLocationManager()
+        activateLocationManagerNotifications()
         checkLocationAccessForRanging()
 
         detectedBeacons = []

            return
        }

        if locationManager?.rangedRegions.count > 0 {
            NSLog("Didn't turn on ranging: Ranging already on.")
            return
        }

        locationManager?.startRangingBeaconsInRegion(beaconRegion)

        NSLog("Ranging turned on for region: \(beaconRegion)")
    }

    func stopRangingForBeacons() {
        if locationManager?.rangedRegions.count == 0 {
            NSLog("Didn't turn off ranging: Ranging already off.")
            return
        }

        locationManager?.stopRangingBeaconsInRegion(beaconRegion)

        var deletedSections = self.deletedSections()
        detectedBeacons = []

    func startMonitoringForBeacons() {
        operationContext = kMonitoringOperationContext

        activateLocationManagerNotifications()
        checkLocationAccessForMonitoring()

        turnOnMonitoring()
