Better shell function for search_queued_books