Part 1 of integrating search