Added thread for zmq