Refactored much of the search submit methods.