Recovering ID in entities, needed in calibrator to avoid file overwrites