Maintaining a history of transactions