Add method for recursively scan