Add TxnContext to internals.