Updated receiving and sending of message.