Make "enabled" code aware of --check mode.

Make "enabled" code aware of --check mode.