Modified the code to send SMS