Ensuring index needed for api.