Some attempts at buffer management on transmit.