Add code for sending messages