Tentative fix for issue #104 involving a rewrite of the addItems
function. Admittedly, that was probably unnecessary but it's nicer now!