Added support for storing and printing of the new statistics.

The supported new statistics are average length of transactions and
amount of time spent in transactions.