Rewrite of base files.