Change some methods to protected.