Added error for duplicate labels.