Added some parsing of a datagram into an object