Changing Main to use DI for config.