Moved transaction transform into main transaction as that appears to work.