              if self.disk_io.completion_event.is_set():
                  logger.debug("DiskIO completion event set. Joining Pool")
                  break
              sleep(1)
          self.patch_threads.join()
  
          logger.debug("Putting EOF")
          save_queue.put("EOF")
          logger.debug("Converted images")
 
</s> remove             retval = int(count_frames(self.args.input_dir))
 </s> add             retval = int(count_frames(self.args.input_dir, fast=True))
            if self.patch_threads.completed():
                logger.debug("All patch threads completed")
                break
              if self.disk_io.completion_event.is_set():
                  logger.debug("DiskIO completion event set. Joining Pool")
                  break
            if self.patch_threads.completed():
                logger.debug("All patch threads completed")
                break
              sleep(1)
          self.patch_threads.join()
  
          logger.debug("Putting EOF")
          save_queue.put("EOF")
          logger.debug("Converted images")
keep keep add keep keep keep keep keep keep
 Reinstate fast frame count for convert and extract. Exit early if count is wrong. 
scripts/convert.py