Checkbox now much more efficient,

Has issues with errors and warnings, however.