Fix book pages cap, make configurable