Generate config on start