Logic separated into UDPUtil class