anchor.diff:  
       // Enable timer, must wait duration before next method execution
       ongoingScanner = new Timer.periodic(
  -        Duration(minutes: 3), (Timer t) => startScan());
  +        Duration(minutes: waitTime), (Timer t) => startScan());
     }
   
     // Start a bluetooth scan of determined second duration and listen to results
     startScan() async {
  - // print("IN BACKGROUND AT THE BEGINNING IS: " + inBackground.toString());
       String previousState = await _storage.read(key: "previousState");
   
       if (inBackground){
  
positive.code: 
    //Remove devices that are no longer scanned
    void removeNoncontinuousDevices() {
      print("scanIntervalAllowance: $scanIntervalAllowance");
      scannedObjects.removeWhere((key, value) {
        bool isDeviceContinuous = checkDeviceDwellTime(value);
        if (!isDeviceContinuous &&
            value.scanIntervalAllowancesUsed >= scanIntervalAllowance) {
          print("Too many scanIntervals");
          return true;
        } else if (!isDeviceContinuous &&
            value.scanIntervalAllowancesUsed < scanIntervalAllowance) {
  
negative.code: 
    // Start a background scan
    void _onBackgroundFetch(String taskID) async {
      inBackground = true;
      String lastTimeStamp = await _storage.read(key: "lastBackgroundScan");
  
      // Start a background scan
      if ( lastTimeStamp == null || DateTime
          .now()
  