Implement integrity checks.