Changing search algorithm