Implemented Rehash (doesn't write header hash)