Restructured the handling of datagrams, accurate pings