First draft implementation of select function..