Added CRC stuff (prereq for custom codec).