Adds pages and index generation