Changed the way page processing is triggered, and made the books into a dictionary.