Updated debug version.
Restructuring for config module.