Changed private properties to protected