Rewriting all script