Added some logging for transactions