Changed the udp server core logic