Refactored the fresh id creation mechanism in Load_model.