Bonnie's solution for book_packer