API_Thread now works onResume.