Add functions for sending messages.