Search logic complete