Better hash for ID