Modify the way scripts are handled