         )
 
         self.searchStream
-          .subscribe(onNext: { [unowned self] pattern in
+          .subscribe(onNext: { pattern in
             self.pattern = pattern
             self.resetAndAddFilterOperation()
           })


        self.flatFileItemsSource
          .subscribeOn(self.scheduler)
          .do(onNext: { [unowned self] items in
            self.scanCondition.lock()
            while self.pauseScan {
              self.scanCondition.wait()

            self.resetAndAddFilterOperation()
          })
          .observeOn(MainScheduler.instance)
          .subscribe(onNext: { items in
            self.count += items.count
            self.countField.stringValue = "\(self.count) items"
          })
