Convert computeNewHashes to virtual method