Moved the self.search def to private