Added duplicate label check