Added support for checkboxes.