Net connection code and removed zmq stuff