Rewrite the script
Prepare script to be able to run