Changed remove code to use getItems