Refactor CRC32 method