Update code to match changes in ting_search