Passing Parameters into the search function.