Moved it to search.c