Updates message-sending functionality.