Added the CRC code (forgot to add to last commit)