Add pages and adjust pages.