Adding stats to the output