Rewrite parts of the files