Adding logic for the tx write engine.