Index setter refactor.