Add hash attribute to tag object
Change hash to alias
Change tag array to use tag aliases