Shifted functionality from index.php to SMSinterfaceController.php