Add a thread for the network