Added extra thread for transmission routine.