Integrity checking addition

Good idea. Fixed names