added a ReceiveMessage function to MessageUtils