Rewrite script section