Prepare for general search function