Improved sms handling.