Added some send message code.