Added a parameter handling mechanism for building and searching.