     // Force here is to make sure we are only starting the location updates once, until we want to restart them
     // Was having issues with it starting, and then starting a second time through resign on some builds.
     func startUpdating(force : Bool) {
-        if(!self.updating || force) {
+        if(!self.updatingLocation || force) {
             self.enableBackgroundLocationUpdates();
-            self.updating = true;
+            self.updatingLocation = true;
 
             self.manager.delegate = self;
 

class ActivityManager : NSObject {
    var manager : CMMotionActivityManager?;
    var available = false;
    var updating = false;

    var isStationary = false;


//State vars
var enabled = false;
var background = false;
var updatingActivities = false;

var locationUpdateCallback:String?;
var locationCommandDelegate:CDVCommandDelegate?;
