Changed private members to protected