Add API for index state.