Starting to write autoResume