Added getItems() function to return the map of items to caller.