Added sendMessage

Need to implement the new way to send messages, but this way appears to
work in tests in other projects.