Using new listAllItems method and deleting unnecessary arrays.