Added multiclass support.