Changed hashSum from long to BigInt