Update to public.php