Using settings in pattern matching, first "working" prototype