Made max search results configurable