Updated smsServer with all functions