Added select and where functions.