More debugging for scripts