Made update() public.