Adding logic for tx pointers and counter.