Add stacktrace to script