Hamming trick for reversibility.