Major updates to 557 svm script