Added calculation for multiple sizes.
Added output to file.