Update logic to generate config file to include annotations