Updated docs to reflect the new `index` argument