Made partitionSize a long to handle larger files.