Make debug configurable