Allowing 'api' method to be public.