Changed the addition of indom's from array based to hash based to avoid edge case death that occurs when all instances are removed.