Filtering by checkboxes works! Also, code is less stupid.