Fixed SVM Functionality