Moved debug mode to config file