Added function to send msg