Added mt_thread polling functionality