Added a send message function