public static void updateBundle(Credential credential, String pid,
			Participant p) throws IOException{
		// See if any cards of the bundle id exist.
		LOG.fine("Exist");
		
		TimelineListResponse resp = MirrorClient.listItemsBundle(credential, pid);

		//Reverse order of cards
		ArrayList<TimelineItem> items = new ArrayList<TimelineItem>();
		for (TimelineItem item: resp.getItems()){
			items.add(0, item);
		}
		
		//Update each card
		for (TimelineItem item: items){
			switch (item.getSourceItemId()) {
			case COVER_CARD:
				MirrorClient.updateTimelineItem(credential, createCoverCard(credential, pid, p), item.getId());
				break;

			case INFO_CARD:
				MirrorClient.updateTimelineItem(credential, createInfoCard(credential, pid, p), item.getId());
				break;

			case METHOD1_CARD:
				MirrorClient.updateTimelineItem(credential, createMethodOneCard(credential, pid, p), item.getId());
				break;

			case METHOD2_CARD:
				MirrorClient.updateTimelineItem(credential, createMethodTwoCard(credential, pid, p), item.getId());
				break;

			case METHOD3_CARD:
				MirrorClient.updateTimelineItem(credential, createMethodThreeCard(credential, pid, p), item.getId());
				break;

			case SAFETY_CARD:
				MirrorClient.updateTimelineItem(credential, createSafetyCard(credential, pid, p), item.getId());
				break;

			default:
				break;
			}
		}
		
	}