Merged two SVC functions into one