Updated methods access from private to protected.

Private methods changed to protected to allow their inheritance.