#1 Changed some residual pageHeight's to segmentSize