Make stacktrace inclusion optional.