Add getSelect helper function