         loadingState = IMSLoadingState.Loading(loading)
     }
     
+
+    private func logHTTP(message: String) {
+        if NSUserDefaults.standardUserDefaults().boolForKey("EnableHTTPLogging") {
+            logInfo(message)
+        }
+    }
+
 }
 
 

        }

        func onResponse(headers: HTTPHeaders, json: AnyObject?) {
            if NSUserDefaults.standardUserDefaults().boolForKey("EnableHTTPLogging") {
                logDebug("Loaded incident #\(number)")
            }

            removeConnectionForLoadingGroup(
                group: IMSLoadingGroup.Incidents,

        let typesURL = "\(self.url)incident_types/"

        func onResponse(headers: HTTPHeaders, json: AnyObject?) {
            logHTTP("Loaded incident types")

            removeConnectionForLoadingGroup(
                group: IMSLoadingGroup.IncidentTypes,
