Added base for a search function