Adding in a reporting function (from thunderstorm repository).