Refactored _get_items() method