Fixed bug in sendMessage(). Works.