Added pages and headers/footers