Add helper to handle transaction creation