Add newObjectId function implementation without machineId