Added term ids to term lists