Handle cycles -- get id first.