SVM with some minor changes.