Improved sms handling and (hopefully!) the network connection method.