Switched to config file basis and debugged.