Modified to use ApplyConfiguration.