          logger.debug("Total phases: %s, Phases: %s", len(phases), phases)
          return phases
  
      # << INTERNAL PLUGIN HANDLING >> #
      def _load_align(self, aligner, configfile, normalize_method, re_feed):
          """ Set global arguments and load aligner plugin """
          if aligner is None or aligner.lower() == "none":
              logger.debug("No aligner selected. Returning None")
              return None
          aligner_name = aligner.replace("-", "_").lower()
 
</s> remove         aligner = PluginLoader.get_aligner(aligner_name)(exclude_gpus=self._exclude_gpus,
                                                         configfile=configfile,
                                                         normalize_method=normalize_method,
                                                         re_feed=re_feed,
                                                         instance=self._instance)
        return aligner

    def _load_detect(self, detector, rotation, min_size, configfile):
 </s> add         plugin = PluginLoader.get_aligner(aligner_name)(exclude_gpus=self._exclude_gpus,
                                                        configfile=configfile,
                                                        normalize_method=normalize_method,
                                                        re_feed=re_feed,
                                                        instance=self._instance)
        return plugin

    def _load_detect(self,
                     detector: str,
                     rotation: Optional[List[int]],
                     min_size: int,
                     configfile: Optional[str]) -> Optional["Detector"]: </s> remove         detector = PluginLoader.get_detector(detector_name)(exclude_gpus=self._exclude_gpus,
                                                            rotation=rotation,
                                                            min_size=min_size,
                                                            configfile=configfile,
                                                            instance=self._instance)
        return detector

    def _load_mask(self, masker, image_is_aligned, configfile):
 </s> add         plugin = PluginLoader.get_detector(detector_name)(exclude_gpus=self._exclude_gpus,
                                                          rotation=rotation,
                                                          min_size=min_size,
                                                          configfile=configfile,
                                                          instance=self._instance)
        return plugin

    def _load_mask(self,
                   masker: str,
                   image_is_aligned: bool,
                   configfile: Optional[str]) -> Optional["Masker"]: </s> remove         masker = PluginLoader.get_masker(masker_name)(exclude_gpus=self._exclude_gpus,
 </s> add         plugin = PluginLoader.get_masker(masker_name)(exclude_gpus=self._exclude_gpus, </s> remove     def _set_flow(detector, aligner, masker):
 </s> add     def _set_flow(detector: str, aligner: str, masker: List[str]) -> List[str]: </s> remove         logger.trace("Active plugins: %s", retval)
 </s> add         logger.trace("Active plugins: %s", retval)  # type: ignore
    def _load_align(self,
                    aligner: str,
                    configfile: Optional[str],
                    normalize_method: Optional[str],
                    re_feed: int) -> Optional["Aligner"]:
          logger.debug("Total phases: %s, Phases: %s", len(phases), phases)
          return phases
  
      # << INTERNAL PLUGIN HANDLING >> #
    def _load_align(self,
                    aligner: str,
                    configfile: Optional[str],
                    normalize_method: Optional[str],
                    re_feed: int) -> Optional["Aligner"]:
          """ Set global arguments and load aligner plugin """
          if aligner is None or aligner.lower() == "none":
              logger.debug("No aligner selected. Returning None")
              return None
          aligner_name = aligner.replace("-", "_").lower()
keep keep keep keep replace keep keep keep keep keep
 extract: Add batch processing mode 
plugins/extract/pipeline.py