#1 Changed pageHeight to segmentSize