Seperated config file generation from main class