Getting sendMessage to work