Improved transaction creation