Adding Select function.