Updated search example based on Daniel's suggestion