Added setSearch method