Modified to support unknown label.