Changed prepareArgs method from protected to public.