Changes to constructor to support one inverted index.