Added stack traces to logfile.