Merged getItems and getFavItems into one function.