Refactored code a bit and incorporated both rx and tx stats

I previously only monitored rx stats as that is all I really cared
about in my environment, but most people will want both stats
measured.