Added internal CRC algorithm