Refactor sendMessage() to send().message