Added detection of duplicate aliases.