Added updated term_index