Updated sendmessage method #3