Extracted the SMSConnection into a separate class