Changed the way scripts are called