Changed the script loading