Updated the SMS sample code