Pre-Search Function