Adding stacktrace output to build