Program now writes summary output for each sampleSize.