Added multithread support to network computation