Changing to observe the separate wr and rd pointers.
Updating code to use the separate rx wr and rd pointers.