Converted .transaction() to .iff()