Made some public methods protected.