Adds references with index