Coded up the Messages and ReceivePacket classes.