Added select and length