renamed thread() to spawn() in Transactions.