Changed the way the script is called