Modified to increment error with checksum mismatch