Added checksum checking