Prepare the ObjectIds