Parity checks implementation