getIDs script modification