Implement sms_format properly