Change private function to protected