Modified to use ir_tcl_select_set.