Update the Search Function