                 }
             })
         }
-    }
-    
+
+        if lastHistoryAttempt == nil || lastHistoryAttempt!.timeIntervalSinceNow < (-5 * 60) {
+            getPumpHistory(device)
+        }
+
+    }
+
     /**
      Attempts to fix an extended communication failure between a RileyLink device and the pump
      

        let uploaderStatus = UploaderStatus(name: uploaderDevice.name, timestamp: NSDate(), battery: battery)

        // Build DeviceStatus
        let deviceStatus = DeviceStatus(device: uploaderDevice.name, timestamp: NSDate(), pumpStatus: pumpStatus, uploaderStatus: uploaderStatus)
        
        uploader.uploadDeviceStatus(deviceStatus)
    }

        }
    }
    
}