Added half duplex support.