Add flags to enable/disable checks.

The use of a flag overrides the config constants settings.