Update script.php

Main script