Changed SendMessage() to public function.