Add TransactionMiddleware