Made sure dataSize calculation was done before checksum calculation