Changed transmit from blocking to interrupt.