Updated UDPThread.