Update addIndex(): Rename parameters to add clarity