The below is an old search function