Replaced old config file stuff, not tested, it's just compileable.