Tentative fix for issue #104 involving a rewrite of the addItems
function.