Added select with index