Fixed to work in non-gui environments.  Improved flexibility by creating dc-enable- variables.