While this clearly better written, this actually breaks it, because AddItem(sName) puts default value of boolean, which is false. Probably need to explicitly put true in AddItem