Add support for threaded transaction, now that I understand what it is.