Change public methods to protected in kernel