Recursively search for models.