sms.py: Made SMS more reliable