Added calcMD for hashing