Separate select function.