Code to send SMS from background after certain interval.