Generate correct number of index entries