Added Debug Mode setting.