Debugged new multiclass functions.