RModel: Add simple  clause.
Fix active_groups use new IN clause.