Changes to sm.pl and sm.conf