Improvements to post_transaction