Added getIndex