Changed 0 to 1 as unique flag.