Changes to sms_controller.rb to test