Updated for changes in sm.net library