Changed vars from private to public.