Checked CRC calculation. Seems it matches with Lua implementation.