Implements checksum and isValid