Added a function that builds the configuration.