Rewrote checkboxes snippet. Tweaks