Minor changes to sm.