Use RewriteConfig instead of WriteConfig