Made helper functions public.