Made a private function public to fix compilation issue.