Changed the configuration into an object.