Changed methods from private to protected