Make debug a config option