Add hashes to the relevant message classes.