Program no longer recalculates kgramstats repeatedly within each run