Changed methods to protected from public