Changed search_queued_books to be a shell function