Changed function types to public.