Separate page size calculation and save

Calculate page size information in 1 routine and do the actual save to a
CSV file in another.