Added CRC7 calculation.