ATS was keen to give up IM man’s custody