Added special-case handling of checkbox inputs.