Modified the find() method to search by ID or TITLE