Added simple select function