Changed private function to public.