Adding functions to retrieve SmsMessage.