Rewrote script.