Refactor long sms method to use sms.ml