Added support for logging the transactions