- Added a check for checked checkboxes