 					}
 				}
 
-				self.networkIndicationEnd()
-			}
-			o.queuePriority = NSOperationQueuePriority.High
-			addOperation(o)
+				#if os(iOS)
+					self.networkIndicationEnd()
+				#endif
+			}.resume()
 	}
 
 	private func userAgent() -> String {

				#else
				return "HouseTrip-Trailer-v\(currentAppVersion)-OSX-Development"
			#endif
			#else
			#if os(iOS)
			return "HouseTrip-Trailer-v\(currentAppVersion)-iOS-Release"
			#else
			return "HouseTrip-Trailer-v\(currentAppVersion)-OSX-Release"
			#endif
		#endif
	}

	func networkIndicationStart() {
		#if os(iOS)
			dispatch_async(dispatch_get_main_queue(), {
			if ++self.networkIndicationCount==1 {
			UIApplication.sharedApplication().networkActivityIndicatorVisible = true
			}
			})
		#endif
	}
	
	func networkIndicationEnd() {
		#if os(iOS)
			dispatch_async(dispatch_get_main_queue(), {
			if --self.networkIndicationCount==0 {
			UIApplication.sharedApplication().networkActivityIndicatorVisible = false
			}
			})
		#endif
	}
}

	var duration: NSTimeInterval
}

class API {

	var reachability = Reachability.reachabilityForInternetConnection()
	var refreshesSinceLastStatusCheck = [NSManagedObjectID:Int]()
