Added CRC functions