Now keeping tracking of last 8 successful transactions and calculating
the smoothness factor. Still not writing to the log file