Add transaction support to batch creator