Generate_Pages: introduced the main subroutine.