Changed name of index to tagIndex