Moved recv_msg to Message.as. Added class var length.