Make use of on_public function.