Implemented page generator.