Allow for easy dependency injection in tests.
Add search scope option.
Add plugin hooks.