Add --stacktrace option for sample task