Checksum calculation added