Added rewrite scripts