Converted the config class to a struct.