Added debugging to sendmessage.