Change command functions to public.