A little refactoring
Adds rules for exact and max checkboxes