Added both functions required for weak checksum