Add the hash logic for Aliases.