Integrity checking addition

Fixed