Works with index