A TAO is also applied for if DEOCS believe that the children are at immediate risk of harm and that custody is needed to ensure their safety.