Naive select function.