Added logic to render the StackTrace.