Updated properties to protected
Removed unused variable