Add calculate checksum method