Added checksum functions.