Made config function public.