Added a setting to turn debugging on