Added addIndex()