Begin of the MaxPageScan program