         }
 
         if(self.available) {
-            self.updating = true;
+            self.updatingActivities = true;
 
             manager!.startActivityUpdates(to: OperationQueue()) { data in
                 if let data = data {

            UIApplication.shared.scheduleLocalNotification(notification);
        }
    }
}
    let SECS_OLD_MAX = 2.0;

    var locationArray = [CLLocation]();
    var updatingLocation = false;
    var aggressive = false;

    var lowPowerMode = false;
