Trying to debug why a script doesn't run