SVM functions added