Added sms functionality code