Change CalculateHash
Add ForEach