Made properties protected instead of public.