Added transaction logging.