Update mainforhash