Fixed loopback issue without using two additional threads.