Modify advancedEnumerate() to be able to resume enumeration