Rewrite modules.