Added separate config file and debug mode