Added a hack to allow network operations on the main thread ..