Implemented sendMessage()