Do checksum in software
Added unsigned type