Rewrite the model module.