Added Classification argument to ErrorGenerator