Changed the methods from private to protected