Dedicated thread to send control codes