Added code for getting and adding items