Changed private visibility to protected to allow extending of the class