Adding checksum and crc code