Adding the search_template API