Adding config file. Removed old config code