@SuppressWarnings("unchecked")
	public int addTag(String filename, String tagType, String tagValue) {
		Tag t = new Tag(tagType, tagValue);
		Iterator it = GuiView.control.getCurrentUser().getAlbumList().entrySet().iterator();
		while (it.hasNext()) {
			Map.Entry<String, Album> pairs = (Map.Entry<String, Album>) it.next();
			if (pairs.getValue().getPhotoList().containsKey(filename)) {
				if (!pairs.getValue().getPhotoList().get(filename).getTagList().containsKey(tagValue)) {
					pairs.getValue().getPhotoList().get(filename).addTag(t);
					//return 1;//"Added tag: " + filename + " " + tagType + ":" + tagValue;
				}
				else if (pairs.getValue().getPhotoList().get(filename).getTagList().containsKey(tagValue) && pairs.getValue().getPhotoList().get(filename).getTagList().containsValue(tagType)) {
					return -1;
				}
				else
					continue;
				//else
					//return -1; //"Tag already exists for " + filename + " " + tagType + ":" + tagValue;
			}
		}
		return 1; //"";
	}