Added func for sending messages