Changed the way to access private members.