Make debug mode configurable.